# coding = utf-8
from django.urls import path
from rest_framework.routers import DefaultRouter

from .views import RoomViewSet, VideoUserInfoViewSet, RoomListAPIView, VideoLoginUserViewSet, RecordVideoUser, \
    VideoRoomRetrieveAPIView, WeChatUserLoginQrCode, WeChatUserLoginQrCodInfo

router = DefaultRouter()
router.register(r'room', RoomViewSet, basename="room")
router.register(r'video_login_user', VideoLoginUserViewSet, basename="video-login-user")
router.register(r'video_user', VideoUserInfoViewSet, basename="video-user")

urlpatterns = [
    path('room_list/', RoomListAPIView.as_view(), name="api-room-list"),
    path('video_room/<int:pk>/', VideoRoomRetrieveAPIView.as_view(), name="api-room-id"),
    path('record_video_user/', RecordVideoUser.as_view(), name="api-record-video-user"),
    path('wechat_user_login_qrcode/', WeChatUserLoginQrCode.as_view(), name="api-wechat-user-login-qrcode"),
    path('wechat_user_login_info/', WeChatUserLoginQrCodInfo.as_view(), name="api-wechat-user-login-info"),
]

urlpatterns += router.urls